const base = '/lc'

export const AuthApi = {
    login: base + '/auth/login',
    checkLogin: base + '/auth/checkLogin',
    logout: base + '/auth/logout'
}

export const AttachmentApi = {
    delByIds: base + '/attachment/delByIds',
    getDetail: base + '/attachment/getDetail',
    upload: base + '/attachment/upload',
    batchUpload: base + '/attachment/batchUpload',
    getFileList: base + '/attachment/getFileList',
    delByBizTypeAndBizId: base + '/attachment/delByBizTypeAndBizId'
}

export const DeptApi = {
    add: base + '/dept/add',
    updById: base + '/dept/updById',
    delByIds: base + '/dept/delByIds',
    getDetail: base + '/dept/getDetail'
}

export const UserApi = {
    add: base + '/user/add',
    updById: base + '/user/updById',
    delByIds: base + '/user/delByIds',
    getDetail: base + '/user/getDetail',
    updPwd: base + '/user/updPwd',
    getLoginUserInfo: base + '/user/getLoginUserInfo',
    getContactBook: base + '/user/getContactBook',
    count: base + '/user/count'
}

export const RoomApi = {
    updById: base + '/room/updById',
    getDetail: base + '/room/getDetail',
    getList: base + '/room/getList',
    createRoom: base + '/room/createRoom',
    addMember: base + '/room/addMember',
    quitRoom: base + '/room/quitRoom',
    setMuted: base + '/room/setMuted',
    getUsers: base + '/room/getUsers'
}

export const MessageApi = {
    setReadById: base + '/message/setReadById',
    setReadByRoomId: base + '/message/setReadByRoomId',
    getChatHistory: base + '/message/getChatHistory',
    getUnreadCount: base + '/message/getUnreadCount'
}

export const MemoApi = {
    add: base + '/memo/add',
    updById: base + '/memo/updById',
    getUserMemo: base + '/memo/getUserMemo'
}

export const TodoApi = {
    edit: base + '/todo/edit',
    getByType: base + '/todo/getByType'
}

export const ConfigApi = {
    getWebConfigs: base + '/config/getWebConfigs'
}